import request from '@/utils/request'

// 启动页 banner 列表
export function launchLists(params: any) {
    return request.get({ url: '/article.banner/launchLists', params })
}
// 启动页 banner 详情
export function launchDetail(params: any) {
    return request.get({ url: '/article.banner/launchDetail', params })
}
// 启动页 banner 编辑
export function launchEdit(params: any) {
    return request.post({ url: '/article.banner/launchEdit', params })
}
// 启动页 banner 添加
export function launchAdd(params: any) {
    return request.post({ url: '/article.banner/launchAdd', params })
}
// 启动页 banner 删除
export function launchDelete(params: any) {
    return request.post({ url: '/article.banner/launchDelete', params })
}
// 启动页 banner 更改状态
export function updateStatus(params: any) {
    return request.post({ url: '/article.banner/launchUpdateStatus', params })
}

// 场地 banner 列表
export function officePlaceLists(params: any) {
    return request.get({ url: '/article.banner/officePlaceLists', params })
}
// 场地 banner 详情
export function officePlaceDetail(params: any) {
    return request.get({ url: '/article.banner/officePlaceDetail', params })
}
// 场地 banner 编辑
export function officePlaceEdit(params: any) {
    return request.post({ url: '/article.banner/officePlaceEdit', params })
}
// 场地 banner 添加
export function officePlaceAdd(params: any) {
    return request.post({ url: '/article.banner/officePlaceAdd', params })
}
// 场地 banner 删除
export function officePlaceDelete(params: any) {
    return request.post({ url: '/article.banner/officePlaceDelete', params })
}
// 场地 banner 更改状态
export function officePlaceUpdateStatus(params: any) {
    return request.post({ url: '/article.banner/officePlaceUpdateStatus', params })
}

// 渠道 banner 列表
export function channelLists(params: any) {
    return request.get({ url: '/article.banner/lists', params })
}
// 渠道 banner 详情
export function channelDetail(params: any) {
    return request.get({ url: '/article.banner/detail', params })
}
// 渠道 banner 编辑
export function channelEdit(params: any) {
    return request.post({ url: '/article.banner/edit', params })
}
// 渠道 banner 添加
export function channelAdd(params: any) {
    return request.post({ url: '/article.banner/add', params })
}
// 渠道 banner 删除
export function channelDelete(params: any) {
    return request.post({ url: '/article.banner/delete', params })
}
// 渠道 banner 更改状态
export function channelUpdateStatus(params: any) {
    return request.post({ url: '/article.banner/updateStatus', params })
}

// 首页弹窗 banner 列表
export function indexPopupLists(params: any) {
    return request.get({ url: '/article.banner/indexPopupLists', params })
}
// 首页弹窗 banner 详情
export function indexPopupDetail(params: any) {
    return request.get({ url: '/article.banner/indexPopupDetail', params })
}
// 首页弹窗 banner 编辑
export function indexPopupEdit(params: any) {
    return request.post({ url: '/article.banner/indexPopupEdit', params })
}
// 首页弹窗 banner 添加
export function indexPopupAdd(params: any) {
    return request.post({ url: '/article.banner/indexPopupAdd', params })
}
// 首页弹窗 banner 删除
export function indexPopupDelete(params: any) {
    return request.post({ url: '/article.banner/indexPopupDelete', params })
}
// 首页弹窗 banner 更改状态
export function indexPopupUpdateStatus(params: any) {
    return request.post({ url: '/article.banner/indexPopupUpdateStatus', params })
}
// 创建官方资讯
export function createDynamic(params: any) {
    return request.post({ url: '/dynamic.dynamic/createDynamic', params })
}
// 官方资讯列表
export function officialList(params: any) {
    return request.get({ url: '/dynamic.dynamic/officialList', params })
}
// 禁用官方资讯
export function changeOfficialDynamic(params: any) {
    return request.post({ url: '/dynamic.dynamic/changeOfficialDynamic', params })
}
// banner统计
export function bannerStatitics(params: any) {
    return request.get({ url: '/article.banner/statitics', params })
}